package 对象之继承.Animal;

public class text {
    public static void main(String[] args) {
        Dog d = new Dog();
        d.setName("阿黄");
        d.setAge(2);
        System.out.println(d.getName());
        System.out.println(d.getAge());
        d.watch();
        System.out.println("=================");
    }
}
